package com.dfd.shiro.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.dfd.shiro.model.SysToken;
import com.dfd.shiro.mapper.SysTokenMapper;
import com.dfd.shiro.service.SysTokenService;
@Service
public class SysTokenServiceImpl implements SysTokenService{

    @Resource
    private SysTokenMapper sysTokenMapper;

    @Override
    public int deleteByPrimaryKey(Integer userId) {
        return sysTokenMapper.deleteByPrimaryKey(userId);
    }

    @Override
    public int insert(SysToken record) {
        return sysTokenMapper.insert(record);
    }

    @Override
    public int insertSelective(SysToken record) {
        return sysTokenMapper.insertSelective(record);
    }

    @Override
    public SysToken selectByPrimaryKey(Integer userId) {
        return sysTokenMapper.selectByPrimaryKey(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(SysToken record) {
        return sysTokenMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SysToken record) {
        return sysTokenMapper.updateByPrimaryKey(record);
    }

}
